Release 10.1A: OpenEdge Development:
Debugging and Troubleshooting
Application mode
The Debugger runs in application mode when you start an initial application using the Debugger options of the Procedure Editor and the AppBuilder. This application runs in the Debugger context, and the Debugger takes control when the application stops at an automatic breakpoint set at the first executable line. This gives you a chance to examine your application listings and set breakpoints before continuing execution. You can run other procedures from the Debugger, using Debug
Note: You can run the Debugger in application mode from your own application, using theRun, effectively running them under your initial application.
DEBUGGERsystem handle. For more information, see the "Debugging from the 4GL" section.Figure 2–1 shows the relationship between the Debugger in application mode, its initial application, other procedures it might run, and the OpenEdge environment in which it is running.
Figure 2–1: Debugging in application mode
![]()
In application mode, you can start and restart the Debugger and its initial application without leaving your OpenEdge environment.
Exiting procedures started with Debug
Run
When you exit a procedure started with Debug
Run, it returns control to the Debugger. Any previous application on the stack (including the initial application) waits to resume execution at its current stopping point.
Exiting the Debugger before the initial application
When you exit the Debugger in application mode by closing the Debugger window, the Debugger purges itself from the OpenEdge environment and closes any procedures started with Debug
Run. It then returns control to the initial application, which continues execution from its current interruption point.
Exiting the initial application before the Debugger
When you exit the initial application, it returns control to the environment where you started it. If the Debugger is running when you exit, the Debugger closes its window but leaves Debugger session settings, such as window size and location, initialized in the OpenEdge environment. If you then run the same or another application using the Editor or AppBuilder Debugger option, the Debugger window opens with its previous window settings and takes control with a breakpoint at the first executable line.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |